package com.foreverwin.mes.common.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 物料耗用
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-03-21
 */
@TableName("Z_EAP_LOG")
public class EapLog extends Model<EapLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * IP地址
     */
   @TableField("SERVER_ID")
   private String serverId;
    /**
     * MQ地址
     */
   @TableField("BROKER")
   private String broker;
    /**
     * 队列名称
     */
   @TableField("QUEUE")
   private String queue;
    /**
     * 消息ID
     */
   @TableField("MESSAGE_ID")
   private String messageId;
    /**
     * 消息内容
     */
   @TableField("MESSAGE_BODY")
   private String messageBody;
    /**
     * 结果
     */
   @TableField("RESULT")
   private String result;
    /**
     * 错误信息
     */
   @TableField("ERROR")
   private String error;
    /**
     * 消息类型
     */
   @TableField("MESSAGE_TYPE")
   private String messageType;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getServerId() {
      return serverId;
   }

   public void setServerId(String serverId) {
      this.serverId = serverId;
   }

   public String getBroker() {
      return broker;
   }

   public void setBroker(String broker) {
      this.broker = broker;
   }

   public String getQueue() {
      return queue;
   }

   public void setQueue(String queue) {
      this.queue = queue;
   }

   public String getMessageId() {
      return messageId;
   }

   public void setMessageId(String messageId) {
      this.messageId = messageId;
   }

   public String getMessageBody() {
      return messageBody;
   }

   public void setMessageBody(String messageBody) {
      this.messageBody = messageBody;
   }

   public String getResult() {
      return result;
   }

   public void setResult(String result) {
      this.result = result;
   }

   public String getError() {
      return error;
   }

   public void setError(String error) {
      this.error = error;
   }

   public String getMessageType() {
      return messageType;
   }

   public void setMessageType(String messageType) {
      this.messageType = messageType;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String SERVER_ID = "SERVER_ID";

   public static final String BROKER = "BROKER";

   public static final String QUEUE = "QUEUE";

   public static final String MESSAGE_ID = "MESSAGE_ID";

   public static final String MESSAGE_BODY = "MESSAGE_BODY";

   public static final String RESULT = "RESULT";

   public static final String ERROR = "ERROR";

   public static final String MESSAGE_TYPE = "MESSAGE_TYPE";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "EapLog{" +
         "handle = " + handle +
         ", site = " + site +
         ", serverId = " + serverId +
         ", broker = " + broker +
         ", queue = " + queue +
         ", messageId = " + messageId +
         ", messageBody = " + messageBody +
         ", result = " + result +
         ", error = " + error +
         ", messageType = " + messageType +
         ", createdDateTime = " + createdDateTime +
         "}";
   }
}